package com.tongzhan.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.tongzhan.annotation.ColumnDoc;
import com.tongzhan.annotation.PrimaryKey;
import com.tongzhan.annotation.TableDoc;
import com.tongzhan.base.BaseModel;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * 系统枚举配置表
 * @author htmic
 * @date 2020/7/31
 */
@TableDoc(table = "t_sys_dict",desc = "系统枚举配置表")
@Data
@Document(collection = "t_sys_dict")
public class SysDict extends BaseModel {
    @PrimaryKey
    @ColumnDoc("id")
    private String id;
    private String pid;
    private String code;
    private String type;//枚举值
    private String value;//枚举值名字
    private String desc;//描述
    private Integer isDelete;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date addTime;//添加时间

}
